﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BO;
using DAO;
using System.Data;

namespace BL
{
    public class B_Herd
    {
        D_Herd dal = new D_Herd();
        public static B_Herd CreateInstance()
        {
            return new B_Herd();
        }
        public bool CreateOneHerd(Herd_Info Herd_Info)
        {

            return dal.CreateOneHerd(Herd_Info);
        }
        public bool EditOneHerd(Herd_Info Herd_Info)
        {

            return dal.EditOneHerd(Herd_Info);
        }
        public bool RemoveOneHerd(int HerdID)
        {

            return dal.RemoveOneHerd(HerdID);
        }
        public DataTable GetAllHerd()
        {
            
            return dal.GetAllHerd();
        }
        public Herd_Info GetOneHerd(int HerdID)
        {
            
            return dal.GetOneHerd(HerdID);
        }
    }
}
